<div id="share<?=$i->ID?>" class="share">
    <?
    $p = $i->sender;
    include 'apps/profile/template/mini.html';
    ?>
    <p class="shareContent">
        <a class="senderName" href="/profile/<?=$i->sender->ID?>" title="<?=$i->sender->name?>"><?=$i->sender->name?></a>
        <?=nl2br($i->content)?>
    </p>
    <div class="shareSubs">
        <?=sprintf(dgettext('tag','shared about %s on %s'),
        '<a class="tag" href="/tag/'.$i->tag.'">'.$i->tag.'</a>'
        ,'<span class="date">'.common::date($i->date).'</span>')?>
        
        <?if($i->sender->ID == UID || EDITOR):?>
        <a class="delete" title="<?=dgettext('tag','Are you sure delete the post?');?>"
           onclick="tool.remove(this,'/json/<?=LANG?>/tag/shareremove','ID=<?=$i->ID?>,&tagID=<?=$i->tagID?>');">
            <?=dgettext('tag','Delete');?></a>
        <?endif;?>
    </div>
    <div class="clear"></div>
    <div id="comments<?=$i->ID?>" class="comments">
        <? if($i->comments) 
        foreach ($i->comments as $c)
        include 'apps/postie/template/comment.html'; ?>
    </div>
    <div class="commentForm">
        <textarea id="commenttext<?=$i->ID?>" class="comment-text italic"><?=dgettext('tag','write a comment..')?></textarea>
        <div class="clear"></div>
    </div>
</div>